home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / samba / patches / samba-1.031 / samba-1
Encoding:
Text File  |  1995-09-11  |  3.9 KB  |  126 lines

  1. diff -u -r --new-file last-version/source/Makefile samba-1.9.14alpha14/source/Makefile
  2. --- last-version/source/Makefile    Sun Sep 10 23:26:09 1995
  3. +++ samba-1.9.14alpha14/source/Makefile    Mon Sep 11 12:10:49 1995
  4. @@ -144,7 +144,6 @@
  5.  
  6.  # Use this for Linux with shadow passwords
  7.  # contributed by Andrew.Tridgell@anu.edu.au
  8. -# you may need -DNO_ASMSIGNALH if you have an older Linux version
  9.  # add -DLINUX_BIGCRYPT is you have shadow passwords but don't have the
  10.  # right libraries and includes
  11.  # FLAGSM = -DLINUX -DSHADOW_PWD
  12. @@ -152,7 +151,6 @@
  13.  
  14.  # Use this for Linux without shadow passwords
  15.  # contributed by Andrew.Tridgell@anu.edu.au
  16. -# you may need -DNO_ASMSIGNALH if you have an older Linux version
  17.  # FLAGSM = -DLINUX
  18.  # LIBSM = 
  19.  
  20. diff -u -r --new-file last-version/source/change-log samba-1.9.14alpha14/source/change-log
  21. --- last-version/source/change-log    Mon Sep 11 00:14:27 1995
  22. +++ samba-1.9.14alpha14/source/change-log    Tue Sep 12 02:01:31 1995
  23. @@ -1540,7 +1540,8 @@
  24.      - lots of uid and encryption changes from Jeremy Allison. WinDD
  25.      should now work.
  26.      - released alpha13
  27. -
  28. +    - fixed max_xmit bug in client
  29. +    - select fix in server (fixed critical drive errors under ISC)
  30.  
  31.  ==========
  32.  todo:
  33. diff -u -r --new-file last-version/source/client.c samba-1.9.14alpha14/source/client.c
  34. --- last-version/source/client.c    Sat Sep  2 17:29:51 1995
  35. +++ samba-1.9.14alpha14/source/client.c    Mon Sep 11 12:59:31 1995
  36. @@ -1004,6 +1004,7 @@
  37.  #if 1
  38.    if (finfo.size > 0)
  39.      {
  40. +      DEBUG(3,("Chaining readX wth openX\n"));
  41.        SSVAL(outbuf,smb_vwv0,SMBreadX);
  42.        SSVAL(outbuf,smb_vwv1,smb_offset(p,outbuf));
  43.        bzero(p,200);
  44. @@ -1088,7 +1089,7 @@
  45.  
  46.        p=NULL;
  47.        
  48. -      DEBUG(3,("nread=%d\n",nread));
  49. +      DEBUG(3,("nread=%d max_xmit=%d fsize=%d\n",nread,max_xmit,finfo.size));
  50.  
  51.        /* 3 possible read types. readbraw if a large block is required.
  52.       readX + close if not much left and read if neither is supported */
  53. @@ -2938,7 +2939,6 @@
  54.      }
  55.    
  56.  
  57. -  max_xmit = SVAL(inbuf,smb_vwv0);
  58.    max_xmit = MIN(max_xmit,BUFFER_SIZE-4);
  59.    if (max_xmit <= 0)
  60.      max_xmit = BUFFER_SIZE - 4;
  61. diff -u -r --new-file last-version/source/util.c samba-1.9.14alpha14/source/util.c
  62. --- last-version/source/util.c    Fri Sep  8 13:04:37 1995
  63. +++ samba-1.9.14alpha14/source/util.c    Tue Sep 12 01:59:23 1995
  64. @@ -1971,6 +1971,7 @@
  65.        do {    
  66.      struct timeval t2;
  67.      memcpy((void *)&t2,(void *)&timeout,sizeof(t2));
  68. +    errno = 0;
  69.      selrtn = select(255,SELECT_CAST &fds,NULL,NULL,&t2);
  70.        } 
  71.        while( selrtn < 0  &&  errno == EINTR );
  72. @@ -2047,6 +2048,7 @@
  73.    timeout.tv_usec = (maxtime % 1000) * 1000;
  74.  
  75.    do {    
  76. +    errno = 0;
  77.      if (maxtime > 0)
  78.        selrtn = select(255,SELECT_CAST &fds,NULL,NULL,&timeout);
  79.      else
  80. @@ -2126,6 +2128,7 @@
  81.      do {    
  82.        struct timeval t2;
  83.        memcpy((void *)&t2,(void *)&timeout,sizeof(t2));
  84. +      errno = 0;
  85.        selrtn = select(255,NULL,SELECT_CAST &fds,NULL,&t2);
  86.      } 
  87.      while( selrtn < 0  &&  errno == EINTR );
  88. @@ -2647,6 +2650,7 @@
  89.      tval.tv_usec = 1000*((t-tdiff)%1000);
  90.   
  91.      FD_ZERO(&fds);
  92. +    errno = 0;
  93.      select(255,NULL,SELECT_CAST &fds,NULL,&tval);
  94.  
  95.      GetTimeOfDay(&t2);
  96. @@ -3538,11 +3542,6 @@
  97.    if (res == -1) 
  98.      { DEBUG(0,("socket failed\n")); return -1; }
  99.  
  100. -  {
  101. -    int one=1;
  102. -    setsockopt(res,SOL_SOCKET,SO_REUSEADDR,(char *)&one,sizeof(one));
  103. -  }
  104. -
  105.    /* now we've got a socket - we need to bind it */
  106.    if (bind(res, (struct sockaddr * ) &sock,sizeof(sock)) < 0) 
  107.      { 
  108. @@ -3559,6 +3558,11 @@
  109.        return(-1); 
  110.      }
  111.    DEBUG(1,("bind succeeded on port %d\n",port));
  112. +
  113. +  {
  114. +    int one=1;
  115. +    setsockopt(res,SOL_SOCKET,SO_REUSEADDR,(char *)&one,sizeof(one));
  116. +  }
  117.  
  118.    return res;
  119.  }
  120. diff -u -r --new-file last-version/source/version.h samba-1.9.14alpha14/source/version.h
  121. --- last-version/source/version.h    Mon Sep 11 00:15:56 1995
  122. +++ samba-1.9.14alpha14/source/version.h    Tue Sep 12 02:05:19 1995
  123. @@ -1 +1 @@
  124. -#define VERSION "1.9.14alpha13"
  125. +#define VERSION "1.9.14alpha14"
  126.